package hrm.action.factory;

import hrm.action.Action;
import hrm.action.ActionFactory;
import hrm.action.insa.InsaAllViewAction;
import hrm.action.insa.InsaIndexAction;
import hrm.action.insa.educationaction.InsaBeforeInsertEducationAction;
import hrm.action.insa.educationaction.InsaDeleteEducationAction;
import hrm.action.insa.educationaction.InsaEducationListAction;
import hrm.action.insa.educationaction.InsaInsertEducationAction;
import hrm.action.insa.educationaction.InsaUpdateEducationAction;
import hrm.action.insa.employeeaction.InsaBeforeInsertEmployee;
import hrm.action.insa.employeeaction.InsaBeforeUpdateEmployee;
import hrm.action.insa.employeeaction.InsaChoiceEmployeeAction;
import hrm.action.insa.employeeaction.InsaInsertEmployee;
import hrm.action.insa.employeeaction.InsaUpdateEmployee;
import hrm.action.insa.familyaction.InsaBeforeInsertFamilyAction;
import hrm.action.insa.familyaction.InsaDeleteFamilyAction;
import hrm.action.insa.familyaction.InsaInsertFamilyAction;
import hrm.action.insa.familyaction.InsaListFamilyAction;
import hrm.action.insa.familyaction.InsaUpdateFamilyAction;
import hrm.action.insa.languageaction.InsaBeforeInsertLanguageAction;
import hrm.action.insa.languageaction.InsaDeleteLanguageAction;
import hrm.action.insa.languageaction.InsaInsertLanguageAction;
import hrm.action.insa.languageaction.InsaListLanguageAction;
import hrm.action.insa.languageaction.InsaUpdateLanguageAction;
import hrm.action.insa.licenceaction.InsaBeforeInsertLicence;
import hrm.action.insa.licenceaction.InsaDeleteLicence;
import hrm.action.insa.licenceaction.InsaInsertLicence;
import hrm.action.insa.licenceaction.InsaListLicenceAction;
import hrm.action.insa.licenceaction.InsaUpdateLicence;
import hrm.action.insa.militaryaction.InsaBeforeInsertMilitaryAction;
import hrm.action.insa.militaryaction.InsaDeleteMilitaryAction;
import hrm.action.insa.militaryaction.InsaInsertMilitaryAction;
import hrm.action.insa.militaryaction.InsaListMilitaryAction;
import hrm.action.insa.militaryaction.InsaUpdateMilitaryAction;



public class InsaActionFactory implements ActionFactory {
	private static InsaActionFactory factory;
	
	public static InsaActionFactory getInstance(){
		if(factory==null){
			factory=new InsaActionFactory();
		}
		return factory;
	}

	public Action getAction(String command){
		Action action=null;
		if(command.equalsIgnoreCase("index")){
			action=new InsaIndexAction();
		}else if(command.equalsIgnoreCase("bfInsertEmployee")){
			action=new InsaBeforeInsertEmployee();
		}else if(command.equalsIgnoreCase("insertEmployee")){
			action=new InsaInsertEmployee();
		}else if(command.equalsIgnoreCase("bfUpdateEmployee")){
			action=new InsaBeforeUpdateEmployee();
		}else if(command.equalsIgnoreCase("updateEmployee")){
			action=new InsaUpdateEmployee();
		}else if(command.equalsIgnoreCase("choiceEmployee")){
			action=new InsaChoiceEmployeeAction();
		}else if(command.equalsIgnoreCase("listLanguage")){
			action=new InsaListLanguageAction();
		}else if(command.equalsIgnoreCase("educationlist")){
			action=new InsaEducationListAction();
		}else if(command.equalsIgnoreCase("bfInserteducation")){
			action=new InsaBeforeInsertEducationAction();
		}else if(command.equalsIgnoreCase("updateeducation")){
			action=new InsaUpdateEducationAction();
		}else if(command.equalsIgnoreCase("deleteeducation")){
			action=new InsaDeleteEducationAction();
		}else if(command.equalsIgnoreCase("inserteducation")){
			action=new InsaInsertEducationAction();
		}else if(command.equalsIgnoreCase("bfInsertLanguage")){
			action=new InsaBeforeInsertLanguageAction();
		}else if(command.equalsIgnoreCase("insertLanguage")){
			action=new InsaInsertLanguageAction();
		}else if(command.equalsIgnoreCase("updateLanguage")){
			action=new InsaUpdateLanguageAction();
		}else if(command.equalsIgnoreCase("deleteLanguage")){
			action=new InsaDeleteLanguageAction();
		}else if(command.equalsIgnoreCase("listMilitary")){
			action=new InsaListMilitaryAction();
		}else if(command.equalsIgnoreCase("listFamily")){
			action=new InsaListFamilyAction();
		}else if(command.equalsIgnoreCase("bfInsertFamily")){
			action=new InsaBeforeInsertFamilyAction();
		}else if(command.equalsIgnoreCase("updateFamily")){
			action=new InsaUpdateFamilyAction();
		}else if(command.equalsIgnoreCase("deleteFamily")){
			action=new InsaDeleteFamilyAction();
		}else if(command.equalsIgnoreCase("insertFamily")){
			action=new InsaInsertFamilyAction();
		}else if(command.equalsIgnoreCase("listLicence")){
			action=new InsaListLicenceAction();
		}else if(command.equalsIgnoreCase("bfInsertLicence")){
			action=new InsaBeforeInsertLicence();
		}else if(command.equalsIgnoreCase("updateLicence")){
			action=new InsaUpdateLicence();
		}else if(command.equalsIgnoreCase("deleteLicence")){
			action=new InsaDeleteLicence();
		}else if(command.equalsIgnoreCase("insertLicence")){
			action=new InsaInsertLicence();
		}else if(command.equalsIgnoreCase("bfInsertMilitary")){
			action=new InsaBeforeInsertMilitaryAction();
		}else if(command.equalsIgnoreCase("updateMilitary")){
			action=new InsaUpdateMilitaryAction();
		}else if(command.equalsIgnoreCase("deleteMilitary")){
			action=new InsaDeleteMilitaryAction();
		}else if(command.equalsIgnoreCase("insertMilitary")){
			action=new InsaInsertMilitaryAction();
		}else if(command.equalsIgnoreCase("allView")){
			action=new InsaAllViewAction();
		}
		
		return action;
	}//
}
